package com.start_eternity.oasissafewalk.service;

import com.start_eternity.oasissafewalk.pojo.Notice;

import java.util.List;

/**
 * @author QT
 * @description 针对表【notice(通知公告表)】的数据库操作Service
 * @createDate 2024-01-31 19:06:29
 */
public interface NoticeService {

    //查询所有公告
    public List<Notice> findAll();

    //分页查询
    public List<Notice> queryPage(int current, int size);

    //批量插入
    public int insertBatching(List<Notice> notices);

    //根据id修改
    public int updateByNIding(Notice entity);

    //根据id删除公告
    int delBatchId(List<Integer> nId);

    //根据标题删除公告
    int delByNTitling(String nTitle);

    //根据id查询公告
    List<Notice> queryAllByNIding(Integer nId);

    //根据标题查询公告
    List<Notice> queryByTitle(String nTitle);

}
